package com.scs.application.modules.msg.model;

import com.scs.application.modules.msg.enums.MessageType;
import com.google.common.collect.Maps;
import lombok.Data;
import lombok.Getter;

import java.util.Map;

/**
 */
@Data
public abstract class Message{

    private String title;
    private String content;

    private String tplKey;

    @Getter
    private Map<String,Object> tplDataMap = Maps.newHashMap();

    public void addTplData(String key,Object value){
        this.tplDataMap.put(key,value);
    }

    public abstract MessageType getMessageType();
}
